// render.js
// 问题3：怎么把vdom转为真实dom
import { diff } from './diff'

export function render (vdom, container, oldDom = container.firstChild) {
  // firstChild 涉及一条原则，每个react元素都必须有父节点，保证拿到子节点
  diff(vdom, container, oldDom)
}